﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kstopa.Core.Attributes
{
    [AttributeUsage(AttributeTargets.Field)]
    public  class ErrorCodeItemMetadataAttribute : Attribute
    {
        public string ErrorMessage { get; set; }

        public object ErrorCode { get; set; }

        public object[] Args { get; set; }

        public ErrorCodeItemMetadataAttribute(string errorMessage, params object[] args)
        {
            ErrorMessage = errorMessage;
            Args = args;
        }
    }
}
